﻿using System.Data;

namespace MaLu.Data
{
    public interface IDbHelper
    {
        #region 数据库操作

        int ExecuteNonQuery(IDbProvider provider, string sqlString);

        int ExecuteNonQuery(IDbProvider provider, string sqlString, params IDataParameter[] sqlParas);

        object ExecuteScalar(IDbProvider provider, string sqlString);

        object ExecuteScalar(IDbProvider provider, string sqlString, params IDataParameter[] sqlParas);

        IDataReader ExecuteDataReader(IDbProvider provider, string sqlString);

        IDataReader ExecuteDataReader(IDbProvider provider, string sqlString, params IDataParameter[] sqlParas);

        DataTable ExecuteDataTable(IDbProvider provider, string sqlString);

        DataTable ExecuteDataTable(IDbProvider provider, string sqlString, params IDataParameter[] sqlParas);

        #endregion

        
    }
}
